package com.shiminghui;

import java.util.ArrayList;

public class Test1 {
    public static void main(String[] args) {

        ArrayList<String> arrayList = new ArrayList<>();

        arrayList.add("asd");
        arrayList.add("azc");
        arrayList.add("aeqw");

        System.out.print("[");
        for (int i = 0; i < arrayList.size(); i++) {
            if (i != arrayList.size() - 1)
                System.out.print(arrayList.get(i) + ",");
            else
                System.out.println(arrayList.get(i) + "]");
        }
    }
}
